/**
 * 
 */
package com.tiduyun.data.exchange.util.http.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import lombok.Data;

/**
 * @author wuzheng@tiduyun.com
 *
 */
@ConditionalOnProperty("cmp.http-client.enable")
@ConfigurationProperties("cmp.http-client")
@Configuration
@Data
public class CmpHttpClientBuilderProperties {

    // connection manager config
    private Integer maxConnPerRoute = 500;
    private Integer maxConnTotal = 1000;
    private Integer connTimeToLive;
    
    // default request config
    private CmpHttpClientRequestConfigProperties requestConfig;

    // default socket config
    private CmpHttpClientSocketConfigProperties socket;

    // default http config
    private String userAgent;
    private String cookieStore;

    // proxy config
    private CmpHttpClientProxyProperties proxy;

}
